//index.js
//获取应用实例
const http=require('../../models/http')
Page({
    data:{
        playlists:[]
    },
    onLoad(){
        http.getCatData().then(res=>{
            var playlists=res.data.playlists
            this.setData({
                playlists
            })
        })
    }
})
